input — Get user response


\begin{rail}
Input : 'input' '(' String (',' '''s''' ) ? ')' ;
\end{rail}
The input function provides an easy method for users to get a simple response from the keyboard. The string argument is printed on the standard output (usually the screen), and the program waits for the user response. input then returns the input, which can be either a string, or a number. If you want to force the input to be a string, then use the optional second argument, "s", to force the return value to be a string. Actually any argument will do — just so long as there is some argument. If the user just hits return when prompted, then input returns an empty matrix. $\Longrightarrow$ This is not an built-in function. This function is normally loaded on start-up from the input.r file in the standard rlib directory. Use of the -r option, incorrectly setting the RLAB_LIB_DIR environmental variable, or modifying input.r may make this function unavailable.

Subsections